import Vue from "vue";
import Vuex from "vuex";
import per from 'vuex-persistedstate'
Vue.use(Vuex);
Vue.use(per);

export default new Vuex.Store({
  state: {
    user:'',

  },
  mutations: {
    // 获取token
    getToken(state,val){
      state.user = val
    }
  },
  actions: {},
  modules: {},
  plugins:[per()]
});
